﻿using System;
using DataService.Enums;

namespace DataService.Tag;

public class ValueChangingEventArgs<T> : EventArgs
{
    public ValueChangingEventArgs(QUALITIES quality, T oldValue, T newValue, DateTime oldTime, DateTime newTime)
    {
        Quality = quality;
        OldValue = oldValue;
        NewValue = newValue;
        OldTimeStamp = oldTime;
        NewTimeStamp = newTime;
    }

    public QUALITIES Quality;
    public T OldValue;
    public T NewValue;
    public DateTime OldTimeStamp;
    public DateTime NewTimeStamp;
}
